<template>
  <div class="header">
    <div class="header1">
      <span class="iconfont">&#xe685;</span>
    </div>
    <div class="header2">
      <span class="iconfont">&#xe6bf;</span>
      输入城市
    </div>
    <router-link to="/city">
      <div class="header3">
        {{this.$store.state.city}}
          <span class="iconfont">&#xe688;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/varibles.styl'
.header
  display :flex
  background-color: $bgColor
  color: #fff
  line-height : .88rem
  height: .88rem
.header1
  width : .64rem
  flota: left
.header2
  background-color: #fff
  flex: 1
  height: .64rem
  line-height : .64rem
  margin-top : .12rem
  // margin-left .2rem
  border-radius  .1rem
  color #ccc;
.header3{
  float: right
  text-align : center
}
a
  color #FFFFFF
</style>
